
/**
 * @brief    Define real, discrete design variable values for discrete variable
 * optimization.
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2025.04.11
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Input/Design/DesignBase.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct DDVALData : public DesignBase {
  struct DVALData {
    SG::DataStructure::Common::Real m_V = 0.0;  ///<
    DVALData() = default;
    explicit DVALData(SG::DataStructure::Common::Real v) : m_V(v) {}
  };

  SG::DataStructure::Common::Id m_domainId = 0;  ///<

  std::vector<DVALData> m_DVALList;
};

///@{ @brief operator override
DECLSPEC bool operator==(const DDVALData::DVALData& val1,
                         const DDVALData::DVALData& val2);

DECLSPEC bool operator==(const DDVALData& val1, const DDVALData& val2);
///}@
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
